/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_offer_assure_demand.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_OFFER_ASSURE_DEMAND
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_offer_assure_demand.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROD_OFFER_ASSURE_DEMAND::CTable_PPM_PROD_OFFER_ASSURE_DEMAND( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_OFFER_ASSURE_DEMAND" );
  prepareTable();
  prepareQuery();
 
  P_OFFER_ASSURE_DMD_ID.setField( "P_OFFER_ASSURE_DMD_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( P_OFFER_ASSURE_DMD_ID );
  makeKeyItem( P_OFFER_ASSURE_DMD_ID ); 
  PROD_OFFER_ID.setField( "PROD_OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PROD_OFFER_ID );
  SECURITY_DESC.setField( "SECURITY_DESC", DATA_CHAR, 30, 0 );
  makeTableItem( SECURITY_DESC );
  SECURITY_VALUE.setField( "SECURITY_VALUE", DATA_DOUBLE, 22, 0 );
  makeTableItem( SECURITY_VALUE );
  SECURITY_METHOD_CD.setField( "SECURITY_METHOD_CD", DATA_CHAR, 30, 0 );
  makeTableItem( SECURITY_METHOD_CD );
  SECURITY_DUR.setField( "SECURITY_DUR", DATA_DOUBLE, 22, 0 );
  makeTableItem( SECURITY_DUR );
  MERGE_DEMAND.setField( "MERGE_DEMAND", DATA_CHAR, 256, 0 );
  makeTableItem( MERGE_DEMAND );
  SECURITY_NUM.setField( "SECURITY_NUM", DATA_DOUBLE, 22, 0 );
  makeTableItem( SECURITY_NUM );
}


CTable_PPM_PROD_OFFER_ASSURE_DEMAND::CTable_PPM_PROD_OFFER_ASSURE_DEMAND( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_OFFER_ASSURE_DEMAND" );
  prepareTable();
  prepareQuery();
 
  P_OFFER_ASSURE_DMD_ID.setField( "P_OFFER_ASSURE_DMD_ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( P_OFFER_ASSURE_DMD_ID );
  makeKeyItem( P_OFFER_ASSURE_DMD_ID ); 
  PROD_OFFER_ID.setField( "PROD_OFFER_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PROD_OFFER_ID );
  SECURITY_DESC.setField( "SECURITY_DESC", DATA_CHAR, 30, 0 );
  makeTableItem( SECURITY_DESC );
  SECURITY_VALUE.setField( "SECURITY_VALUE", DATA_DOUBLE, 22, 0 );
  makeTableItem( SECURITY_VALUE );
  SECURITY_METHOD_CD.setField( "SECURITY_METHOD_CD", DATA_CHAR, 30, 0 );
  makeTableItem( SECURITY_METHOD_CD );
  SECURITY_DUR.setField( "SECURITY_DUR", DATA_DOUBLE, 22, 0 );
  makeTableItem( SECURITY_DUR );
  MERGE_DEMAND.setField( "MERGE_DEMAND", DATA_CHAR, 256, 0 );
  makeTableItem( MERGE_DEMAND );
  SECURITY_NUM.setField( "SECURITY_NUM", DATA_DOUBLE, 22, 0 );
  makeTableItem( SECURITY_NUM );
}

CTable_PPM_PROD_OFFER_ASSURE_DEMAND::~CTable_PPM_PROD_OFFER_ASSURE_DEMAND( )
{
    close();
}

